package org.example.curriculum_design_6_16.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.example.curriculum_design_6_16.entity.pojo.UserRole;
import org.example.curriculum_design_6_16.service.UserRoleService;
import org.example.curriculum_design_6_16.mapper.UserRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 郑凯
* @description 针对表【user_role】的数据库操作Service实现
* @createDate 2025-06-16 13:21:18
*/
@Service
public class UserRoleServiceImpl extends ServiceImpl<UserRoleMapper, UserRole>
    implements UserRoleService{
    @Autowired
    private UserRoleMapper userRoleMapper;

    @Override
    public String getUserRoles(String userId) {
        return userRoleMapper.findRoleNamesByUserId(userId);
    }
}




